document.getElementById("go").onclick=function(){
	var data={}
	data.username=$("#username").val()
	data.chinese_name=$("#chinese_name").val()
	data.password1=$("#password1").val()
	data.password2=$("#password2").val()
	if(/^ *$/.test(data.username) || /^ *$/.test(data.chinese_name)){
		alert("请填写完整的信息！")
		return false;
	}
	if(data.password1!==data.password2){
		alert("密码不一致！")
		return false;
	}
	data=JSON.stringify(data)
	$.ajax({
		"url":"/reset_password/",
		"error":errorAjax,
		"beforeSend":start_load_pic,
		"complete":stop_load_pic,
		"data":{"data":data},
		"type":"POST",
		"success":function(data){
			data=JSON.parse(data)
			if(!data.status){
				alert(data.content)
				return false;
			}
			alert("修改成功！")
			window.location.href="/"
		}
	})
}
